﻿<%@ Page Title="" Language="C#" MasterPageFile="~/user/MasterPage2.master" AutoEventWireup="true" CodeFile="Information.aspx.cs" Inherits="user_Information" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style5 {
            margin-left: 105px;
            margin-top: 0px;
            margin-bottom: 20px;
        }
        .auto-style6 {
            font-size: xx-large;
        }
        .auto-style7 {
            text-align: center;
        }
        .auto-style8 {
            text-align: center;
            font-size: small;
            color: #336600;
        }
    .auto-style9 {
        text-align: right;
        margin-left: 7px;
        margin-top: 0px;
        margin-bottom: 20px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong><asp:Label ID="Label1" runat="server" CssClass="auto-style8" Text="个人信息" BorderStyle="None"></asp:Label>
    </strong>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>
    <br />
    <br />
    </strong>
    <div class="auto-style8">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" CssClass="auto-style9" DataKeyNames="客户编号"  GridLines="None" Height="165px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="970px" DataSourceID="SqlDataSource1" ForeColor="#333333">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:CommandField ShowEditButton="True" />
            <asp:BoundField DataField="客户名" HeaderText="客户名" SortExpression="客户名" />
            <asp:BoundField DataField="密码" HeaderText="密码" SortExpression="密码" />
            <asp:BoundField DataField="手机号" HeaderText="手机号" SortExpression="手机号" ReadOnly="True" />
            <asp:BoundField DataField="地址" HeaderText="地址" SortExpression="地址" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    </div>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues" ConnectionString="<%$ ConnectionStrings:keshe2ConnectionString %>" DeleteCommand="DELETE FROM [客户] WHERE [客户编号] = @original_客户编号 AND [客户名] = @original_客户名 AND [密码] = @original_密码 AND [手机号] = @original_手机号 AND [地址] = @original_地址" InsertCommand="INSERT INTO [客户] ([客户名], [密码], [手机号], [地址], [客户编号]) VALUES (@客户名, @密码, @手机号, @地址, @客户编号)" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [客户名], [密码], [手机号], [地址], [客户编号] FROM [客户] WHERE ([客户编号] = @客户编号)" UpdateCommand="UPDATE [客户] SET [客户名] = @客户名, [密码] = @密码, [手机号] = @手机号, [地址] = @地址 WHERE [客户编号] = @original_客户编号 AND [客户名] = @original_客户名 AND [密码] = @original_密码 AND [手机号] = @original_手机号 AND [地址] = @original_地址">
        <DeleteParameters>
            <asp:Parameter Name="original_客户编号" Type="Int64" />
            <asp:Parameter Name="original_客户名" Type="String" />
            <asp:Parameter Name="original_密码" Type="String" />
            <asp:Parameter Name="original_手机号" Type="String" />
            <asp:Parameter Name="original_地址" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="客户名" Type="String" />
            <asp:Parameter Name="密码" Type="String" />
            <asp:Parameter Name="手机号" Type="String" />
            <asp:Parameter Name="地址" Type="String" />
            <asp:Parameter Name="客户编号" Type="Int64" />
        </InsertParameters>
        <SelectParameters>
            <asp:SessionParameter Name="客户编号" SessionField="id" Type="Int64" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="客户名" Type="String" />
            <asp:Parameter Name="密码" Type="String" />
            <asp:Parameter Name="手机号" Type="String" />
            <asp:Parameter Name="地址" Type="String" />
            <asp:Parameter Name="original_客户编号" Type="Int64" />
            <asp:Parameter Name="original_客户名" Type="String" />
            <asp:Parameter Name="original_密码" Type="String" />
            <asp:Parameter Name="original_手机号" Type="String" />
            <asp:Parameter Name="original_地址" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
&nbsp;
</asp:Content>

